<template>
  <el-form :inline="true" :model="formInline" class="formP10" size="mini">
    <el-form-item label="项目名称">
      <el-input v-model="formInline.filterProjectName" placeholder="项目名称"></el-input>
    </el-form-item>
    <el-form-item label="项目编码">
      <el-input v-model="formInline.filterProjectNo" placeholder="项目编码"></el-input>
    </el-form-item>
    <el-form-item>
      <el-button type="primary" @click="onSubmit">查询</el-button>
    </el-form-item>
  </el-form>
</template>

<script>
export default {
  name: "headForm",
  data () {
    return {
      formInline: {
        filterProjectName: "",
        filterProjectNo: ""
      }
    };
  },
  methods: {
    onSubmit () {
      // console.log('submit!');
      this.$emit("onSubmit", this.formInline);
    }
  }

};
</script>

<style lang="less" scoped>
.formP10 {
  padding: 10px;
}
</style>